﻿using FreeSql.DataAnnotations;

namespace GetMan.Core.DB.Entities
{
    public interface IEntity<T>
    {
        T Id
        {
            get; set;
        }
    }

    public class Entity : IEntity<long>
    {
        [Column(IsIdentity = true, IsPrimary = true)]
        public virtual long Id
        {
            get; set;
        }
    }

    public class SortEntity : Entity, ISortEntity
    {
        public virtual int Sort
        {
            get; set;
        }
    }
}